package com.snow.javalib;

/**
 * Created by zhaoyingtao
 * Date: 2021/9/9
 * Describe:
 */
public class TestJavaClass {
    public static void main(String[] args) {
        ss();
    }

    private static void ss() {
        int[] array = new int[]{10, 52, 25, 63, 45, 35};
        for (int i = 0; i < array.length; i++) {
            for (int j = 0; j < array.length - i - 1; j++) {
                if (array[j] < array[j + 1]) {
                    int temp = array[j];
                    array[j] = array[j + 1];
                    array[j + 1] = temp;
                }
            }
        }
        for (int i = 0; i < array.length; i++) {
            System.out.println(array[i]);
        }
    }
}
